// 
import {request, uploadFile} from './bks.request'
// 年级列表（无需登录）
export const gradeSelect = () => {
  return request({
    url: '/applet/course/back/applet-anon/grade/list'
  })
}
// 课程模式列表
export const courseList = (data) => {
  return request({
    url: '/applet/course/app/applet-anon/list',
    method: 'post',
    data
  })
}
// 课时模式列表
export const periodList = (data) => {
  return request({
    url: '/applet/course/app/applet-anon/period/list',
    method: 'post',
    data
  })
}
// 课程详情
export const periodDetail = (params) => {
  return request({
    url: '/applet/course/app/applet-anon/period/detail',
    method: 'get',
    params
  })
}
// 课时列表
export const periodDetailList = (params) => {
  return request({
    url: '/applet/course/app/applet-anon/period/detail/list',
    method: 'post',
    params
  })
}
// 课时内容查看收藏记录
export const periodCollectStatus = (params) => {
  return request({
    url: '/applet/course/app/applet-anon/period/collection',
    method: 'get',
    params
  })
}

// 课时内容浏览点击
export const periodLookNew = (params) => {
  return request({
    url: '/applet/course/app/applet-anon/period/lookNew',
    method: 'get',
    params
  })
}
// 获取直播间列表
export const liveList = (params) => {
  return request({
    url: '/applet/applet-anon/live/live/info',
    params
  })
}
// 课程订单
export const orderPay = (params) => {
  return request({
    url: '/applet/bksOrder/period/order',
    params
  })
}
// 支付回调
export const payCallBack = (params) => {
  return request({
    url: '/applet/applet-anon/pay/callBack',
    method: 'post',
    params
  })
}
// 课程是否购买成功
export const bksOrderBuy = (params) => {
  return request({
    url: '/applet/bksOrder/buy',
    params
  })
}